package com.swu.education.repository;


import java.util.List;

import com.swu.education.entity.ThumbsAndCommentRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ThumbsAndCommentRecordRepository extends JpaRepository<ThumbsAndCommentRecord, Integer>{

	public ThumbsAndCommentRecord findByChatIdAndUserId(Integer chatId, Integer userId);
	public List<ThumbsAndCommentRecord> findByChatId(Integer chatId);
}
